From: Colin Walters Date: Wed, 9 May 2018 14:46:37 +0000 (-0700) Subject: tests/installed: Disable all rpmmd repos X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~24^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=605d3132062e1e0b35a21578adb04a5eaae8c6d4;p=ostree.git tests/installed: Disable all rpmmd repos For the same reason we do in the rpm-ostree tests. This also made sure the test run worked when I was offline on a plane. Closes: #1583 Approved by: jlebon --- diff --git a/tests/installed/destructive-ansible.yml b/tests/installed/destructive-ansible.yml index 12ee5d52..a0e69aa1 100644 --- a/tests/installed/destructive-ansible.yml +++ b/tests/installed/destructive-ansible.yml @@ -8,6 +8,7 @@ use_git_build: True tests: "." tasks: + - import_tasks: tasks/disable-all-rpmmd-repos.yml - import_tasks: tasks/query-host.yml - set_fact: rpmostree_initial_deployment: "{{ rpmostree_status[\"deployments\"][0] }}" diff --git a/tests/installed/tasks/disable-all-rpmmd-repos.yml b/tests/installed/tasks/disable-all-rpmmd-repos.yml new file mode 100644 index 00000000..b4f2a074 --- /dev/null +++ b/tests/installed/tasks/disable-all-rpmmd-repos.yml @@ -0,0 +1,5 @@ +- name: Disable all rpmmd repos + shell: | + for x in /etc/yum.repos.d/*.repo; do + sed -i -e 's,^enabled=,enabled=0,g' $x + done